home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
shells
/
scsh-0.4
/
scsh-0
/
scsh-0.4.2
/
scsh
/
jcontrol2.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-11-04
|
2KB
|
77 lines
/* This is an Scheme48/C interface file,
** automatically generated by cig.
*/
#include <stdio.h>
#include <stdlib.h> /* For malloc. */
#include "libcig.h"
#include <sys/signal.h>
#include <sys/types.h>
#include <unistd.h>
extern int errno;
#define errno_or_false(x) (((x) == -1) ? ENTER_FIXNUM(errno) : SCHFALSE)
scheme_value df_set_procmask(long nargs, scheme_value *args)
{
extern int set_procmask(int , int , int *);
scheme_value ret1;
int r1;
int r2;
cig_check_nargs(3, nargs, "set_procmask");
r1 = set_procmask(EXTRACT_FIXNUM(args[2]), EXTRACT_FIXNUM(args[1]), &r2);
ret1 = ENTER_FIXNUM(r1);
VECTOR_REF(*args,0) = ENTER_FIXNUM(r2);
return ret1;
}
scheme_value df_get_procmask(long nargs, scheme_value *args)
{
extern int get_procmask(int *);
scheme_value ret1;
int r1;
int r2;
cig_check_nargs(1, nargs, "get_procmask");
r1 = get_procmask(&r2);
ret1 = ENTER_FIXNUM(r1);
VECTOR_REF(*args,0) = ENTER_FIXNUM(r2);
return ret1;
}
scheme_value df_set_int_handler(long nargs, scheme_value *args)
{
extern scheme_value set_int_handler(int , scheme_value , int , scheme_value *, int *);
scheme_value ret1;
scheme_value r1;
scheme_value r2;
int r3;
cig_check_nargs(4, nargs, "set_int_handler");
r1 = set_int_handler(EXTRACT_FIXNUM(args[3]), args[2], EXTRACT_FIXNUM(args[1]), &r2, &r3);
ret1 = r1;
VECTOR_REF(*args,0) = r2;
VECTOR_REF(*args,1) = ENTER_FIXNUM(r3);
return ret1;
}
scheme_value df_get_int_handler(long nargs, scheme_value *args)
{
extern scheme_value get_int_handler(int , scheme_value *, int *);
scheme_value ret1;
scheme_value r1;
scheme_value r2;
int r3;
cig_check_nargs(2, nargs, "get_int_handler");
r1 = get_int_handler(EXTRACT_FIXNUM(args[1]), &r2, &r3);
ret1 = r1;
VECTOR_REF(*args,0) = r2;
VECTOR_REF(*args,1) = ENTER_FIXNUM(r3);
return ret1;
}